##
##    This file is part of Metrix.
##
##    Metrix is free software: you can redistribute it and/or modify
##    it under the terms of the GNU General Public License as published by
##    the Free Software Foundation, either version 3 of the License, or
##    (at your option) any later version.
##
##    Metrix is distributed in the hope that it will be useful,
##    but WITHOUT ANY WARRANTY; without even the implied warranty of
##    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
##    GNU General Public License for more details.
##
##    You should have received a copy of the GNU General Public License
##    along with Metrix.  If not, see <http://www.gnu.org/licenses/>.
##

class CreateVersions < ActiveRecord::Migration
  def self.up
    create_table :versions do |t|
		t.column "numero", :string
		t.column "fecha_inicio", :date
		t.column "fecha_fin_estimada", :date
		t.column "fecha_fin_real", :date
		t.column "hs_hombre_estimadas", :integer
		t.column "hs_hombre_reales", :integer
		t.column "KLOC", :integer
		t.column "producto_id", :integer
		t.column "recursos_estimados", :integer
		t.column "recursos_reales", :integer
    end
  end

  def self.down
    drop_table :versions
  end
end

